<?php
	echo $html->css('main/form');
	echo $this->Html->script('jquery.validate');
	echo $this->Html->script('jquery.metadata');
	if(Configure::read('Config.language') != 'en') {
		echo $this->Html->script('language/validation.' . Configure::read('Config.language') . '.js');
	}
?>
<?php echo $session->flash(); ?>
<?php 
echo $form->create(array('id'=>'formValidation', 'action' => 'forgot_pwd_complete/'.$id.'-'.$token, 'enctype' => 'multipart/form-data', 'autocomplete'=>'off'));
?>
	<fieldset>
	<legend><?php echo __('Change password', true); ?></legend>
<?php 
echo $form->input(
	'Member.ipasswd', 
	array(
		'id'		=> 'passwd', 
		'type'		=> 'password', 
		'label'		=> __('New Password', true),
		'after'		=> '<span class="require">*</span>', 
		'div'		=> true, 
		'class'		=> 'required'
	)
);
 
echo $form->input(
	'Member.passwd_confirm', 
	array(
		'id'		=> 'passwd_confirm', 
		'type'		=> 'password', 
		'label'		=> __('Password agian', true),
		'after'		=> '<span class="require">*</span>', 
		'div'		=> true, 
		'class'		=>'required'
	)
); 
?>
<div class="input">
	<label></label>
	<?php 
		echo $form->button(
			__('Accept', true), 
			array(
				'class'=>'h30x137 accept', 
				'type'=>'submit', 
				'id'=>'regSubmit'
			)
		);
	?>
</div>
<?php 
echo $form->end(); 
?>

<script type="text/javascript">
$(document).ready(
	function() {
		$("form#formValidation").validate();
	}
);
</script>